package com.fh.service.system.banner;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.fh.dao.DaoSupport;
import com.fh.entity.Page;

import com.fh.util.PageData;


@Service("bannerService")
public class BannerService {

	@Resource(name = "daoSupport")
	private DaoSupport dao;
	
	//======================================================================================
	
	
	
	
	/*
	* 保存
	*/
	public void saveBanner(PageData pd)throws Exception{
		dao.save("BannerMapper.saveBanner", pd);
	}
	
	/*
	* 删除
	*/
	public void deleteBanner(PageData pd)throws Exception{
		dao.delete("BannerMapper.deleteBanner", pd);
	}
	/**
	 *查
	 * @param page
	 * @return
	 * @throws Exception
	 */
	public List<PageData> listAllBanner(Page page)throws Exception{
		return (List<PageData>) dao.findForList("BannerMapper.listAllBanner", page);
	}
	
	
	
	
}

